package com.lagou.edu.service;

import org.apache.dubbo.rpc.RpcContext;

/**
 * @program: stage-3-module-3
 * @description:
 * @author: zhangxiaoyang
 * @date: 2020-08-31 19:25
 **/

public class HelloServiceImpl implements HelloService {
    public String sayHello(String msg) {
        System.out.println(">>>>>>>>>接收到客户端请求：" + RpcContext.getContext()
                                                            .getAttachment("client-ip"));
        return "hello,我已接收到你的请求：" + msg;
    }
}
